package com.ithei.edu.info.manager.service.impl;

import com.ithei.edu.info.manager.dao.TeacherDao;
import com.ithei.edu.info.manager.dao.impl.TeacherDaoImpl;
import com.ithei.edu.info.manager.domain.Teacher;
import com.ithei.edu.info.manager.service.TeacherService;

import java.io.IOException;
import java.util.ArrayList;

public class TeacherServiceImpl implements TeacherService{
   private static TeacherDao teacherDao=new TeacherDaoImpl();

    @Override
    public void addTeacher() throws IOException {
        teacherDao.addTeacher();
    }

    @Override
    public ArrayList<Teacher> BufferedReaderFile() throws IOException {
        return teacherDao.BufferedReaderFile();
    }

    @Override
    public void BufferedWriterFile(Teacher teacher) throws IOException {
        teacherDao.BufferedWriterFile(teacher);
    }

    @Override
    public void selectAll() throws IOException {
        teacherDao.selectAll();
    }

    @Override
    public void deleteTeacherById() throws IOException {
        teacherDao.deleteTeacherById();
    }

    @Override
    public void setTeacherById() throws IOException {
        teacherDao.setTeacherById();
    }

    @Override
    public void deleteFile(ArrayList<Teacher> list) throws IOException {
        teacherDao.deleteFile(list);
    }
}
